package com.zgis.module.bas.exception;

/**
 * 修改记录:
 * 24-09-29     zhengchaojun             首次创建
 */

/**
 * 类描述：异常处理的对象
 */
public class BasException extends Exception
{
    private static final long serialVersionUID = 1L;

    private Object errorCode = "0";

    public BasException()
    {

    }

    public BasException(String detailMessage)
    {
        super(detailMessage);
    }

    public BasException(String detailMessage, Throwable throwable)
    {
        super(detailMessage, throwable);
    }

    public BasException(Throwable throwable)
    {
        super(throwable);
    }

    public BasException(Object errorCode)
    {
        this.errorCode = errorCode;
    }

    public BasException(Object errorCode, String detailMessage)
    {
        super(detailMessage);
        this.errorCode = errorCode;
    }

    public BasException(Object errorCode, String detailMessage, Throwable throwable)
    {
        super(detailMessage, throwable);
        this.errorCode = errorCode;
    }

    public BasException(Object errorCode, Throwable throwable)
    {
        super(throwable);
        this.errorCode = errorCode;
    }

    public String getErrorCode()
    {
        return errorCode.toString();
    }
}
